"""
Pytest configuration and shared fixtures for market data service tests.
"""

import pytest
import sys
from pathlib import Path

# Add project root to path
project_root = Path(__file__).parent.parent.parent.parent
sys.path.insert(0, str(project_root))

# Add service directory to path
service_dir = Path(__file__).parent.parent
sys.path.insert(0, str(service_dir))


@pytest.fixture(scope="session")
def event_loop_policy():
    """Use the default event loop policy for all tests"""
    import asyncio
    return asyncio.DefaultEventLoopPolicy()


@pytest.fixture
def anyio_backend():
    """Use asyncio backend for async tests"""
    return 'asyncio'

